<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
   

<h1>New Client: </h1>
 
<form:form action="${action}" commandName="client" modelAttribute="client" method="POST">

	<form:errors path="*" cssClass="errorblock" element="div" />
	<br/>
	
	<form:label path="name">Name:</form:label><br/>
	<form:input path="name" /> <br/>
	<form:errors path="name" cssClass="error" /> 
	
	<br/>
	
	<form:label path="ssn">SSN:</form:label><br/>
	<form:input path="ssn"/>
	<form:errors path="ssn" cssClass="error" />
	
	<br/>
    
    <form:label path="country">Country:</form:label><br/>
	<form:select path="country" >
		<form:options items="${countryList}"/>
	</form:select><br/>
	<form:errors path="country" cssClass="error" />
	
	<br/>
	
	<form:label path="notes">Notes:</form:label><br/>
	<form:textarea path="notes" /> <br/>
	<form:errors path="notes" cssClass="error" />
	
	<br/><br/>
			
	<input type="submit" value="Save" />
	<input type="reset" value="Cancel" onclick="window.history.back();"/>
  
</form:form> 
